-- GENERATED SPELL FOR [Gnarlpine Augur] --


function spell0_2011(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(702,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2011', 549, 1)
end

function spell1_2011(pUnit, Event) --@Gnarlpine Vengeance,Self--
pUnit:FullCastSpellOnTarget(5628,pUnit)
pUnit:RegisterEvent('Sorts_2011', 6261, 1)
end

function Sorts_2011(pUnit, Event)
local choix_sorts_2011 = math.random(0, 1)
if choix_sorts_2011 == 0 then
pUnit:RegisterEvent('spell0_2011', 1, 1)
end
if choix_sorts_2011 == 1 then
pUnit:RegisterEvent('spell1_2011', 1, 1)
end
end

function mob2011_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2011', math.random(1500, 3000), 1)
end

function mob2011_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2011_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2011_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2011, 1, 'mob2011_Action')
RegisterUnitEvent(2011, 2, 'mob2011_Leave')
RegisterUnitEvent(2011, 3, 'mob2011_Kill')
RegisterUnitEvent(2011, 4, 'mob2011_Die')
